/* --- Global Theme Colors Framework --- */
:root {
    --primary-color: #000000;
    --secondary-color: #20c997;
    --bg-dark: #111111;
    --bg-light: #f8f9fa;
    --border-light: #eaeaea;
}

/* --- Reset & Global Configuration --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #ffffff;
    color: var(--bg-dark);
    overflow-x: hidden;
    min-height: 100vh;
}

/* --- Main Header Navigation --- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 4%;
    position: relative;
    z-index: 10;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-light);
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-light);
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

.status-badge .dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--bg-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links .count {
    color: var(--secondary-color);
    font-size: 0.8rem;
    vertical-align: super;
    margin-left: 2px;
}

/* CTA Display Settings */
.mobile-cta {
    display: none !important;
}

.desktop-cta {
    display: inline-flex !important;
}

/* Menu Toggle Button Style */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--bg-dark);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* --- Dynamic Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 500;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px 24px;
}

.btn-dark {
    background-color: var(--bg-dark);
    color: #ffffff;
    padding: 14px 28px;
    font-size: 1rem;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-dark:hover {
    background-color: transparent;
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

.arrow-icon {
    width: 16px;
    height: 16px;
}

/* --- Hero Architecture --- */
.hero-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    height: calc(100vh - 160px);
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 6% 80px 6%;
}

/* Section Accent Typography Layer */
.bg-name {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(4rem, 12vw, 11rem);
    font-weight: 900;
    letter-spacing: 2px;
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    width: 100%;
    text-align: center;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px var(--primary-color);
}

/* Center Graphic Overlay */
.portrait-wrapper {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    z-index: 2;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.portrait-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Informational Cards & Descriptions (Left side) */
.hero-left {
    position: relative;
    z-index: 3;
    max-width: 380px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.85);
    padding: 24px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-light);
}

.hero-left h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.hero-left p {
    color: #555555;
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 1.05rem;
}

/* Interactive Menu States & Icons (Right side) */
.hero-right {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.social-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--bg-dark);
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    min-width: 170px;
    transition: all 0.25s ease;
}

.social-pill:hover {
    background-color: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateX(-5px);
}

.social-icon {
    width: 18px;
    height: 18px;
    stroke: var(--secondary-color);
    transition: stroke 0.25s ease;
}

.social-pill:hover .social-icon {
    stroke: var(--primary-color);
}

/* --- Inline Main Footer --- */
.main-footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
    padding: 24px 4%;
    text-align: center;
    font-size: 0.9rem;
    color: #666666;
}

/* --- Responsive Adaptations --- */
@media (max-width: 992px) {
    .main-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 20px 6%;
    }

    .desktop-cta {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        padding: 30px 20px;
        gap: 24px;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
        z-index: 100;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .mobile-cta {
        display: inline-flex !important;
        width: auto;
        justify-content: center;
        margin-top: 12px;
    }

    .hero-container {
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        text-align: center;
        height: auto;
        padding-top: 140px;
        padding-bottom: 60px;
        gap: 32px;
    }

    .portrait-wrapper {
        position: relative;
        transform: none;
        left: 0;
        order: 2;
        max-width: 360px;
    }

    .bg-name {
        top: 30px;
    }

    .hero-left {
        order: 1;
        max-width: 100%;
        background: transparent;
        border: none;
        backdrop-filter: none;
    }

    .hero-right {
        order: 3;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* --- Portfolio Work Section Base --- */
.work-section {
    padding: 100px 6%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
}

/* Typography Title Structures */
.section-title-wrapper {
    position: relative;
    text-align: center;
    margin-bottom: 60px;
}

.bg-title-text {
    font-size: clamp(3.5rem, 10vw, 8.5rem);
    font-weight: 900;
    letter-spacing: 4px;
    color: var(--bg-light);
    opacity: 0.7;
    line-height: 1;
}

.front-title-text {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--bg-dark);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    white-space: nowrap;
    letter-spacing: -1px;
}



/* Portfolio Card Engine Grid layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.project-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.95);
    position: absolute;
    pointer-events: none;
    width: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* --- Laptop Mockup Styles --- */
.laptop-mockup-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 24px;
}

.laptop-mockup-wrapper .card-image-wrapper {
    position: relative;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background-color: #1a1a1a;
    border: 12px solid #1a1a1a;
    border-bottom-width: 16px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 2;
}

.laptop-base {
    position: relative;
    width: 112%;
    left: -6%;
    height: 14px;
    background: #d4d4d4;
    border-radius: 0 0 16px 16px;
    z-index: 1;
    margin-top: -2px; /* Pull up to overlap slightly */
    box-shadow: inset 0 -3px 4px rgba(0,0,0,0.1), 0 10px 20px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
}

.laptop-notch {
    width: 60px;
    height: 6px;
    background: #b5b5b5;
    border-radius: 0 0 6px 6px;
}

.project-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-img {
    transform: scale(1.03);
}

/* Real Project Flag Badge */
.badge-status {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ffffff;
    color: var(--bg-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 6px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}



/* Card Metadata Copy Details */
.card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 4px;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--bg-dark);
    line-height: 1.4;
    transition: color 0.2s ease;
}

.project-card:hover .project-title {
    color: var(--primary-color);
}

.tag-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tag {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666666;
    background-color: var(--bg-light);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

/* --- Responsive Layout Breaks --- */
@media (max-width: 768px) {
    .work-section {
        padding: 60px 6%;
    }

    .service-section {
        padding: 60px 6%;
    }

    .experience-section {
        padding: 60px 6%;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* --- Experience Section Framework (Dark Mode Breakout) --- */
.experience-section {
    background-color: var(--bg-dark);
    /* Inherits your primary typography system background */
    color: #ffffff;
    padding: 100px 6%;
    position: relative;
    overflow: visible;
    /* Required so hover asset can peek over container edge safely */
}

/* Typography Title Header Layering */
.exp-title-wrapper {
    position: relative;
    margin-bottom: 60px;
}

.exp-bg-text {
    font-size: clamp(3.5rem, 11vw, 9rem);
    font-weight: 900;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.03);
    /* Faded depth layer */
    line-height: 0.9;
    user-select: none;
}

.exp-header-row {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.exp-front-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -1px;
}

.exp-counter {
    font-size: 1rem;
    color: #aaaaaa;
    font-weight: 400;
    padding-bottom: 8px;
}

/* Interactive Rows Container */
.experience-list {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 40px;
}

/* Individual Experience Row Base */
.exp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    z-index: 5;
    transition: padding 0.3s ease;
}

/* Row Hover State Enhancements */
.exp-row:hover {
    padding-left: 12px;
    padding-right: 12px;
    border-bottom-color: var(--secondary-color);
}

.exp-left-col .company-name {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 6px;
    transition: color 0.25s ease;
}

.exp-row:hover .company-name {
    color: var(--secondary-color);
}

.exp-left-col .role-title {
    font-size: 1.05rem;
    color: #888888;
}

.exp-right-col .date-range {
    font-size: 1.1rem;
    color: #aaaaaa;
    font-weight: 400;
    transition: color 0.25s ease;
}

.exp-row:hover .date-range {
    color: #ffffff;
}

/* Dynamic Cursor Tracker Image Frame */
.hover-preview-container {
    position: fixed;
    /* Fixed contextual tracking mapping over layout window viewport */
    width: 240px;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
    /* Crucial: ensures container never traps mouse tracking focus */
    opacity: 0;
    transform: scale(0.8) rotate(-4deg);
    z-index: 100;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.hover-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Responsive Layout Breakpoint Adjustments --- */
@media (max-width: 768px) {
    .exp-header-row {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        gap: 12px;
    }

    .exp-counter {
        padding-bottom: 0;
    }

    .exp-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px 0;
    }

    /* Disable tracking window preview frame on mobile devices for improved accessibility metrics */
    .hover-preview-container {
        display: none !important;
    }
}

/* --- Main Contact Footer Architecture --- */
.main-footer {
    position: relative;
    width: 100%;
    padding: 100px 6% 60px 6%;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 100px;

    /* Elegant cloudy sky ambient depth simulation */
    background: radial-gradient(circle at 50% 30%, #f4f5f7 0%, #ffffff 70%);
    overflow: hidden;
}

/* Centralized CTA Layout Block */
.footer-cta-container {
    position: relative;
    z-index: 2;
    max-width: 780px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-badge {
    margin-bottom: 32px;
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.cta-heading {
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    font-weight: 800;
    color: var(--bg-dark);
    letter-spacing: -1px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.cta-description {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: #555555;
    line-height: 1.6;
    max-width: 640px;
    margin-bottom: 40px;
}

/* Premium Pill Button Style */
.btn-cta {
    background-color: var(--bg-dark);
    color: #ffffff;
    padding: 16px 36px;
    font-size: 1.05rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid transparent;
}

.btn-cta:hover {
    background-color: transparent;
    color: var(--bg-dark);
    border-color: var(--primary-color);
}

/* Bottom Profile and Navigation Toolbar Row */
.footer-bottom-bar {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 40px;
}

/* Brand Identity Profile Pill Component */
.profile-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-dark);
    padding: 8px 24px 8px 10px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #fff;
}

.profile-name {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Social Menu Collection Layout */
.footer-social-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--bg-dark);
    background-color: #ffffff;
    border: 1px solid var(--border-light);
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.footer-social-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--bg-light);
    transform: translateY(-3px);
}

/* --- Responsive Structural Adaptations --- */
@media (max-width: 768px) {
    .main-footer {
        padding: 60px 6% 40px 6%;
        gap: 60px;
    }

    .footer-bottom-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }

    .footer-social-group {
        justify-content: center;
        width: 100%;
    }

    .footer-social-pill {
        flex-grow: 1;
        justify-content: center;
        width: 100%;
    }
}

/* --- Services Section Framework --- */
.service-section {
    padding: 100px 6%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

.service-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

.service-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--bg-dark);
}

.service-description {
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
}

.service-bullets {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.service-bullets li {
    font-size: 0.85rem;
    font-weight: 500;
    color: #666666;
    background-color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-light);
}

/* --- Responsive Services Adjustments --- */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-card {
        padding: 30px;
    }
}